<?php include("../resources/views/header.php");?>
<?php 
    if($result->sex == 1) $sex = 'male';   
    if($result->sex == 0) $sex = 'female'; 
    // var_dump($result);exit();   
?>
<main class="l-main">
    <div class="l-main__inner">
        <div class="l-content" style="padding-top:50px;text-align:center;">
            <img class="head_pic"  src="<?='http://source.timepicker.cn'.$result->icon.'?imageView2/2/w/120'?>">
            <div style="line-height:40px;">
                <?php if ($result->sex != null) :?>
                <span class="sex <?=$sex?>"></span>
                <?php endif ?>
                <span><?=$result->name?></span>
            </div>
            <p><?=$result->description?></p>
        </div>
        <div class="l-content" style="margin-top:15px;">
            <p>
            邮箱：<?=empty($result->email)?'未知':$result->email?></br>
            电话：<?=empty($result->phone)?'未知':$result->phone?></br>
            </p>
            <div style="margin-top:20px;">
                <?php if(!$result->is_verified):?>
                <a href="/user/<?=$result->id?>/verify?state=<?=urlencode('http://'.env('APP_URL').'/user/info')?>" class="btn btn--primary btn--block btn--lg" style="margin-bottom:20px;"/> 认证</a>
                <?php endif?>
                <a href="/logout" class="btn btn--outline btn--lg btn--block" /> 注销</a>
                
            </div>
        </div>
        
    </div>
</main>
<?php include("../resources/views/footer.php");?>
